<!DOCTYPE html>
<html lang="en" ng-app="ita-app">
<head>
  <title>Admin System</title>
  <base href="/#!/">
  <meta charset="UTF-8">
</head>
<body>

<!-- Router View Area -->
<div class="container-fluid">
    <ui-view></ui-view>
</div>

</body>
<script src="http://10.222.29.179:3000/socket.io/socket.io.js"></script>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script type="text/javascript">
    var socket = io.connect('ws://10.222.29.179:3000');//与服务器进行连接
    var m_socket = io.connect('ws://10.222.29.189:8888');
    
    socket.on('notify_verify', function (msg) {
        $("#badge").html(msg);
        $("#notify").show();
    });

    function hideNotify(){
        socket.emit("read", null);
        $("#badge").html("");
        $("#notify").hide();
        var url = window.location.href;
        var state = url.split("#")[1];
        if(state=="!/verify"){
            window.location.reload();
        }else{
            window.location.href = "#!/verify";
        }
    };

</script>

</html>